/*
* 用于后端渲染公用的头部底部
* */

'use strict';
var React=require( 'react');
var reactDom=require( 'react-dom/server');
var HkfsHomeBar=require( '../public/javascripts/components/pc/HkfsHomeBar.jsx');
var HkfsFooter=require( '../public/javascripts/containers/pc/HkfsFooter.jsx');
var HkfsLoginAndRegisterBar=require( '../public/javascripts/components/pc/HkfsLoginAndRegisterBar.jsx');
var HkfsLoginAndRegisterFooter=require( '../public/javascripts/components/pc/HkfsLoginAndRegisterFooter.jsx');
var HkfsHeader=require( '../public/javascripts/components/pc/HkfsHeader.jsx');

class ModelRender{
    //后端渲染头部
    headerRender(){
        return  reactDom.renderToString(
            <HkfsHeader leftData={[{imgHref:'/images/pc/header_phone.png',content:'服务热线：400-102-1010'}]} rightData={[{content:'帮助',contentHref:'#'},{content:'欢迎来到华康财富！'}]}></HkfsHeader>
        );
    }

    //后端渲染bar
    barRender(){
        return  reactDom.renderToString(
            <HkfsHomeBar></HkfsHomeBar>
        );
    }
    //后端渲染登录注册bar
    loginAndRegisterBarRender(){
        return  reactDom.renderToString(
            <HkfsLoginAndRegisterBar></HkfsLoginAndRegisterBar>
        );
    }

    //后端渲染登录注册底部
    loginAndRegisteFooterRender(){
        return  reactDom.renderToString(
            <HkfsLoginAndRegisterFooter/>
        );
    }

    //后端渲染底部
    footerRender(){
        return  reactDom.renderToString(
            <HkfsFooter/>
        );
    }
}

module.exports=ModelRender;